// drag1.js
import {
  getCustomerPhone
} from '../../api/index'
Component({
  data: {
    x: 0,
    y: 0,
  },
  methods: {
    handleClick(e) {
      /*   跳转到智能客服的界面*/
      wx.navigateTo({
        url: '/pages/deepSeek/index',
      })

      /*    const tel = '123456789'
         this.setData({
           showPhone: true,
           'actions[0].name': `${tel}`
         }) */
    },
    //拨号成功
    onSelect(event) {
      const tel = event
      wx.makePhoneCall({
        phoneNumber: tel,
        success: function () {
          console.log("拨号成功！")
        },
        fail: function () {
          console.log("拨号失败！")
        }
      })
    },
  },
})